package com.mss.media.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @Author 湫
 * @Date 2021/12/3 9:54
 * Name 评论
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class MediaComments extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * comments_id comments_id
     */
    @TableId(value = "comments_id", type = IdType.AUTO)
    private Long commentsId;

    /**
     * 作品ID
     */
    private Long caseId;

    /**
     * 评论内容
     */
    private String comments;

    /**
     * 评论状态
     */
    private Integer commentsStatus;

    /**
     * 评论用户
     */
    private String userAccount;

    /**
     * 点赞量
     */
    private Integer commentsPraise;
    /**
     * 留言时间
     */
    private LocalDateTime commentDate;

}
